package com.ruicar.afs.cloud.apply.contract.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.apply.common.entity.ApplyGpsInfo;
import com.ruicar.afs.cloud.apply.contract.condition.GpsCondition;
import com.ruicar.afs.cloud.apply.contract.vo.GpsInstallVO;

/**
 * @author: Lee
 * @date: 2020/5/13 21:18
 * @description: GPS service
 */
public interface ApplyGpsInfoService extends IService<ApplyGpsInfo> {


    /**
     * 获取GPS安装前数据
     *
     * @param condition
     * @return
     */
    public GpsInstallVO getGpsPreInstallInfo(GpsCondition condition);

    /**
     * 派工单接口
     *
     * @param gpsInfo
     * @return
     */
    public JSONObject addOrderWithVpsInfos(GpsCondition gpsInfo, GpsInstallVO installVO);

    /**
     * 改派工单接口
     *
     * @param gpsInfo
     * @return
     */
    public JSONObject updateOrderWithVpsInfos(GpsCondition gpsInfo, GpsInstallVO installVO);

    /**
     * 撤销工单接口
     *
     * @param gpsInfo
     * @return
     */
    public JSONObject cancelOrderWithVpsInfos(GpsCondition gpsInfo);

    /**
     * 工单综合查询
     *
     * @param applyNo
     * @return
     */
    public JSONObject getAllOrderInfoByAppCode(String applyNo);
}
